
package ProOF.apl.problems.real;

import ProOF.com.LinkerResults;
import ProOF.com.StreamPrinter;
import ProOF.opt.abst.problem.Val;
import ProOF.opt.abst.problem.meta.Objective;
import ProOF.opt.abst.problem.meta.objective.BoundDbl;
import ProOF.opt.abst.problem.meta.objective.SingleObjective;

/**
 *
 * @author Hossomi
 */
public class RealObjective extends SingleObjective<RealProblem, RealCodification, RealObjective>{

    public RealObjective() throws Exception {
        super(new BoundDbl(-1e9, 1e9, 1e-9));
    }

    @Override
    public void Evaluate(RealProblem prob, RealCodification codif) throws Exception {
        set( prob.func.f( codif.x ) );
    }

    @Override
    public RealObjective New(RealProblem prob) throws Exception {
        return new RealObjective();
    }
	
	
	
}
